﻿<UserControl
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
	xmlns:ei="http://schemas.microsoft.com/expression/2010/interactions" 
	xmlns:System="clr-namespace:System;assembly=mscorlib" xmlns:TheGame="clr-namespace:Waaahsabi.Controls.TheGame;assembly=Waaahsabi.Controls.TheGame" x:Class="TheGameClient.SoftwareUI.FeatureUI.FeatureLocalChatControl"
    mc:Ignorable="d"
    d:DesignHeight="300" d:DesignWidth="400">
    
	<UserControl.Resources>
		<Style x:Key="LocalChatControlStyle" TargetType="TheGame:ChatControl">
			<Setter Property="Template">
				<Setter.Value>
					<ControlTemplate TargetType="TheGame:ChatControl">
						<Grid x:Name="stackPanel">
							<Grid.RowDefinitions>
								<RowDefinition/>
								<RowDefinition Height="32"/>
							</Grid.RowDefinitions>
							<ToggleButton x:Name="btnPin" Content="Pin" HorizontalAlignment="Right" FontFamily="/Waaahsabi.Controls.TheGame;component/Fonts/Fonts.zip#Bavaria Regular" FontSize="8" Width="20" Height="20" Margin="0" Visibility="Collapsed" VerticalAlignment="Top"/>
							<ScrollViewer x:Name="scrollViewer" VerticalScrollBarVisibility="Visible" VerticalContentAlignment="Bottom" BorderBrush="#7FFFFFFF" BorderThickness="0.5" d:LayoutOverrides="Height" Background="#3F000000">
								<ItemsControl ItemsSource="{TemplateBinding ChatMessages}"/>
							</ScrollViewer>
							<TextBox x:Name="txtMessage" TextWrapping="Wrap" Background="#3F000000" FontFamily="/Waaahsabi.Controls.TheGame;component/Fonts/Fonts.zip#Bavaria Regular" FontSize="8" Foreground="White" VerticalContentAlignment="Bottom" MaxLength="500" Grid.Row="1"/>
						</Grid>
					</ControlTemplate>
				</Setter.Value>
			</Setter>
		</Style>
	</UserControl.Resources>
    
    <Grid x:Name="LayoutRoot" >

		<TheGame:ChatControl x:Name="chatControl" d:LayoutOverrides="Width" Style="{StaticResource LocalChatControlStyle}"/>

	</Grid>
</UserControl>
